import pandas as pd
import numpy as np
from sklearn.model_selection import train_test_split
import matplotlib
import matplotlib.pyplot as plt
from matplotlib.pylab import *
import warnings
warnings.filterwarnings('ignore')

all_df=pd.read_csv('train_titanic.csv')


print(all_df['Embarked'].value_counts())

all_df.loc[all_df['Embarked'].isnull(),'Embarked']='S'


import seaborn as sns
sns.countplot(data=all_df,x='Embarked',hue='Survived')
plt.show()